package com.foreknow.practice.demo16;

import java.util.ArrayList;
import java.util.List;

public class ListDemo {
    public static void main(String[] args) {
        List<String> list = new ArrayList();
        list.add("111");
        list.add("222");
        list.size();
        list.get(1);
        System.out.println(list.get(1));
        for (int i=0;i<list.size();i++){
            String ssa =list.get(i);
            System.out.println(ssa);
        }

        for (String a:list) {
            System.out.println(a);

        }
    }



}
